Ante: A low-level functional language
91–100 of 226 posts
Re: Ante: A low-level functional language
#92Earlier quoted context omitted.
I have heard that if you count { and ( as parens, a Java program for example has just as many parens as. lisp one. A lisp paren can do both jobs: expression and scopes.
> A lisp paren can do both jobs: expression and scopes. Using different symbols for different purposes makes sense, it helps humans to parse correctly faster.
Re: Ante: A low-level functional language
#93Interesting, well have to see how it develops in the future. Although, I normally dislike languages without {}, but I suppose that is just preference.
Re: Ante: A low-level functional language
#94Earlier quoted context omitted.
I've heard this argument before, but this isn't true. In shell, f x y z, x y z are all augments to f. Doesn't matter if f takes one argument, all are passed to the function. With many functional languages this gets very confusing. IE what ie what does `f f x` do? In shell I know for sure. In the example f f x, it might be easy to parse. But in f x y z, any of x y z might be functions.
Most functional languages parse a b c d e f as a(b, c, d, e, f), it does not matter what b, c, d, e, f are. Do you know any language where this is different?
Re: Ante: A low-level functional language
#95The mechanism should be made clear in the introduction as browsing the documentation doesn't make it clear to me.
Re: Ante: A low-level functional language
#96Earlier quoted context omitted.
Most functional languages parse a b c d e f as a(b, c, d, e, f), it does not matter what b, c, d, e, f are. Do you know any language where this is different?
I thought more languages did this but at least nix and ocaml do not actually behave like I thought. In Ruby however it is a bit more ugly def f x x + 1 end puts f f 1 > 3
Re: Ante: A low-level functional language
#97The syntax looks a little funky to me but it's still quite interesting. Is there a reason why you would make fn(1) and fn 1 equivalent? For me personally it makes readability worse and looks strange when chaining functions like in their last example on their landing page. On mobile horizontal scrolling through the code snippets will trigger switching to the next snippet on my phone.
A good number of "functional programmers" only have experience with JavaScript these days.
Re: Ante: A low-level functional language
#98Re: Ante: A low-level functional language
#99Earlier quoted context omitted.
Most functional languages parse a b c d e f as a(b, c, d, e, f), it does not matter what b, c, d, e, f are. Do you know any language where this is different?
OCaml and Haskell parse `a b c d e f` as `((((a b) c) d) e) f`.
Re: Ante: A low-level functional language
#100Earlier quoted context omitted.
Age of "var, val" is over. Now age of "significant whitespace". If seriously, seems like indent syntax is default to go nowadays. Python has way too big influence on language designers.
I'm not a fan of python (it handles significant whitespace somewhat poorly). Cases like mixed tab-space whitespace and single-line only lambdas are python-specific problems for example. I chose it mainly because I like the style and I haven't found it to be an issue in practice yet, especially with flexible rules for line continuations. The biggest detriment to me is the lack of auto-formatters for indentation. Edit:…