[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: file.png (32 KB, 1098x470)
32 KB
32 KB PNG
it just makes sense
>>
All right, what programming language has the best syntax?
Lisp and its parentheses is actually very good. It's hard to do better than something so simple and elegant.

What programming language makes best use of whitespace and indentation for its syntax?
>>
>>107658714
Haskell is good
>>
>>107658612
that looks real good
>>
>>107658714
Ada is my favorite
>>
>>107658612
Fennel, which improves upon Lisp syntax
https://fennel-lang.org/
>>
File: 1670182061867196.png (69 KB, 714x574)
69 KB
69 KB PNG
>if
>end
>>
>>107658612
that's just javascript
const discordia = require('discordia');
const client = new discordia.Client();

client.on('ready', function() {
...
});

client.on('messageCreate', function() {
...
});

client.run('Bot INSERT_TOKEN_HERE');
>>
>>107658952
I've always been interested. Any nice Ada codebases for me to read?
>>
>>107659011
worse
>function()
>end
at least make it endfunction
>>
>>107659032
nta but Ada is like PL/SQL
if you've worked with PL/SQL then you know, they borrowed their syntax from Ada
>>
>>107659032
https://github.com/alire-project/alire
>>
>>107658612
>end
Just use braces. Meme language
>>
>>107659053
>PL/SQL
gaaaayyyy
>>
>>107659140
>braces
thats reserved for tables. sorry chud
>>
>>107658612
looks good to me
you can do that with a lot of languages though including C++
>>
>>107658612
What the fuck is this shit? Why would implement message passing like this instead of as a __newindex metatable?
>>
>>107658612
brainfuck makes sense too. it doesn't make it a good language.
>>
>>107659265
thats what it is behind the scenes
>>
>>107659295
It's fucked up and weird. Why is there a useless constructor? Why isn't it just a single function call that takes a function table and returns a client instead of this haphazard meme :on :on :on :on :on shit? What is this, Javascript?
>>
>>107659309
getfenv slows down the script or something like that idk
the api in the OP was written by discord trannies, if you want real lua you should be looking at roblox
https://create.roblox.com/docs/luau



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.