8 ms·
Well that's the first language where I've responded negatively to the comment syntax - and I've worked with tcl. Also, seriously? Double is more than enough fo
by Traster 6y ago
Well that's the first language where I've responded negatively to the comment syntax - and I've worked with tcl.
Also, seriously? Double is more than enough for integers? No. No. No. I'm not going to attack every single line of this article, so lets just say I was triggered.
My daily use languages are Verilog, Python and Tcl.
Edit: I'll actually backtrack to say that this post does a great job of demonstrating things that are non-obvious.
- haberman 6y agoI think this information is obsolete. Lua supports integers (64 bits, by default) as of 5.3.
- jolmg 6y agoWhat's wrong with the comment syntax? > Also, seriously? Double is more than enough for integers? Not saying that I like it, but it's the same as Javascript. If I recall right, Lua is heavily influenced by JS.
- VWWHFSfQ 6y agoLua predates JavaScript by several years. Maybe you meant that JavaScript was influenced by Lua?
- jolmg 6y agoHuh. You're right. Though not several years apart, Lua appeared in 1993 and JS in 1995. I wonder if there's a similar HOPL paper for JS that could confirm Lua's influence.
- SanderSantema 6y agoI don’t think it’s influenced by js: http://www.lua.org/doc/hopl.pdf http://www.lua.org/doc/hopl.pdf
- jolmg 6y agoMust have been just the impression I got. When I read about it many years ago, I thought it was very much like JS except with a different syntax. I mean, besides the number thing, it uses prototypes for inheritance, and its "tables" are very much like JS objects in the way of how o.x == o["x"] for example, or how arrays are basically built on them (though augmented with a little syntax-sugar). I don't know of other languages that share these characteristics.
- colonwqbang 6y agoLua is older than Javascript so if anything it is Javascript which took inspiration from Lua.
- alwillis 6y agoSeems that Lua and NewtonScript share at least the prototypical inheritance: https://en.wikipedia.org/wiki/NewtonScript https://en.wikipedia.org/wiki/NewtonScript
- greenshackle2 6y agoThat would be rather surprising, since Lua predates Javascript.
- tzot 6y agoUnless time machines are involved, I would rather say that Lua is heavily influenced by awk :)
- runxel 6y ago> What's wrong with the comment syntax? Not OP, but for me it's not... "blocky" enough? Especially for inline commands it's maybe just too easy to glimpse over it. But otherwise it's also maybe just plain unfamiliar.
- tdeck 6y agoBoth VHDL and SQL use -- for comments, so I'm kinda surprised that this us the first time you've seen this style.
- schwartzworld 6y agoForth uses parentheses.
- catalogia 6y agoVimscript has the worst comment syntax, hands down. Comments start with the " character, except when they cannot (see :h map-comments)
- foobiekr 6y agothe "use a float for integers" thing is pretty common for scripting languages. I am sorry for your suffering, btw. I, too, have used Tcl.