Re:Ask HN: What programming language has you really excited ...
by vorg on Thursday June 16, 2016 @06:11AM
(#11915130)
> for (minion in party) {
> Just little things like not having 'for (var minion in party)'. It clears the clutter.
Would be even less cluttered if it allowed
for minion in party {
minion.jumpToTheLeft()
}
Parens around a for clause when there's braces following are unnecessary.
Re:Ask HN: What programming language has you really excited ...
by msdos on Thursday June 16, 2016 @11:12PM
(#11920492)
It'd be less cluttered if "in" wasn't in there.
Re:Ask HN: What programming language has you really excited ...
by MichaelBurge on Sunday June 19, 2016 @05:32AM
(#11932377)
The shortest is Haskell's:
forM_ party jumpToTheLeft
Assuming there is a 'party :: [ Minion ]' and 'jumpToTheLeft :: Minion -> IO Minion' in scope.
So I'll focus on ... Haxe: Which is known in a few circles, but If I talk to a random person about it they've never heard of it.
Haxe is a garbage collected strictly typed compiled language with type inference. It compiles to a variety of platforms including C++, Javascript, Flash Bytecode, Neko VM bytecode, even PHP. More recently it has been growing support for C#, java, python and lua.
It's just a nice language to use. A combination of the cool features like pattern matching case statements, and the simple tidiness of the basics.
Just little things like not having 'for (var minion in party)'. It clears the clutter. while still protecting you.In many respects, when compiling to JavaScript, it serves the niche that Dart and Typescript aim at. I think the fact that it is independent should not be underestimated. Google people tend to use Dart, Microsoft people use TypeScript. Haxe is not on a 'side' people use it because of what it is, not who made it. I'm rather against provenance as a reason to use a language.
The best way to get a good feel for Haxe is to go to http://try.haxe.org and look-at/run some of the examples.