News for hackers. Stuff that matters.
Re:X by bisRepetita on Thursday May 21, 2020 @08:16AM (#23257485)
The paper's date is March 31st, so that it can be read on April 1st....
Re:X by mihaaly on Thursday May 21, 2020 @08:41AM (#23257682)
I do not exclude nothing weird since learning that indentation is a structural part of Python. I was convinced that it is just a joke, first. Now I am just sad.
Re:X by masklinn on Thursday May 21, 2020 @08:50AM (#23257756)
> I do not exclude nothing weird since learning that indentation is a structural part of Python.

That is not that weird. In fact a more formal (and optional) version (the "offside rule", which is what Haskell uses) was part of Landin's Iꜱᴡɪᴍ:

> (c) Indentation, used to indicate program structure. A physical Iꜱᴡɪᴍ can be defined in terms of an unspecified parameter: a subset of phrase categories, instances of which are restricted in layout by the following rule called "the offside rule." The southeast quadrant that just contains the phrase's first symbol must contain the entire phrase, except possibly for bracketed subsegments. This rule has three important features. It is based on vertical alignment, not character width, and hence is equally appropriate in handwritten, typeset or typed texts. Its use is not obligatory, and use of it can be mixed freely with more conventional alternatives like punctuation. Also, it is incorporated in Iꜱᴡɪᴍ in a systematic way that admits of alternatives without changing other features of Iꜱᴡɪᴍ and that can be applied to other languages.

> I was convinced that it is just a joke, first. Now I am just sad.

There is at least one language which "seriously" attempted this though: : color forth ; (which should properly be written colorForth with a red "color" and a green "forth": https://web.archive.org/web/20160310135832/http://colorforth...).

Re:X by mihaaly on Friday May 22, 2020 @05:41AM (#23270240)
Using visual/presentation elements for functional meaning is pretty weird. Regardless of being alone with it or not.
Re:X by segfaultbuserr on Thursday May 21, 2020 @09:28AM (#23258047)
If you consider the long and rich history of computing, Python is not uncommon. Just an example: in COBOL, the 7th character of a line has special meaning, for example, comments must begin at the 7th character. Code body usually starts at the 8th character of a line. If you don't follows these rules, compiler won't accept your code. It makes sense when you consider that COBOL was initially written on punchcards.