Re:Bog – small, strongly typed, embeddable language
by dawsoneliasen on Sunday January 29, 2023 @12:02PM
(#34570054)
Is it just me or is that a terrible “hello world”? I get that they’re trying to illustrate a few features but the whole point of hello world is that it is the absolute most simple program. Why put the string world into a variable named world just to show that you can insert a variable into a string? It looks so confusing.
[ Parent
| on HN ]
Re:Bog – small, strongly typed, embeddable language
by buttspelunker on Sunday January 29, 2023 @01:07PM
(#34570828)
I read that as "Yes, Bog does formatted strings", and appreciate the density.
Re:Bog – small, strongly typed, embeddable language
by layer8 on Sunday January 29, 2023 @02:35PM
(#34571819)
The purpose of a Hello World, however, is not to showcase language features, it’s to provide a minimal program that produces output, to test that your dev environment is working properly, and for you to learn how to operate it. Adding any unnecessary complications to it only adds further sources of error.
Re:Bog – small, strongly typed, embeddable language
by bsaul on Sunday January 29, 2023 @04:43PM
(#34573071)
Do you think real people will get confused and think the only way to write hello world in bog is using a variable ?
Or do you think most people will automatically adjust and think "hello world in itself doesn't show much, so the author decided to include something more informative and keep call that hello world" ?