logoalt Hacker News

pansa2yesterday at 11:09 PM4 repliesview on HN

I like significant invitation, but I still wouldn’t choose it if I was designing a language today.

Functional-style programming has become much more popular since Python was designed in the 1990s, and there doesn’t seem to be a good way to have Python-like significant indentation and also support true anonymous functions.


Replies

pjmlptoday at 8:35 AM

True anonymous functions has nothing to do with indentation, ML derived languages are also indentation based.

Guido doesn't want them in the language, as simple as that.

windingtoday at 4:55 AM

As I understand it, Mojo’s goal is to be able to match state of the art performance for parallel algorithms and be able to use the exotic GPU hardware. A functional style is not necessarily productive in that context.

One interesting PL concept they implement are linear types https://mojolang.org/docs/std/traits/anytype/AnyType/

maleldiltoday at 1:14 AM

Haskell has significant indentation and anonymous functions.

show 1 reply
jampekkatoday at 7:14 AM

Scala 3, F#, CoffeeScript, Nim, Haskell, Elm, PureScript...