Remix.run Logo
lrasinen 7 hours ago

One of these years I'm going to make a Finnish programming language that enforces the correct case in arguments. And I don't mean silly arguments like camelCase vs kebab-case, I mean grammar.

Some examples to illustrate:

  tiedosto on "foo.txt" avattuna
  tulostin on PRN1
  kirjoita(tiedostoon, "a")
  kirjoita(tulostimelle, "b")
Job security for DECADES.
onre 4 hours ago | parent | next [-]

This is equal parts brilliant and demented. Thank you.

  syöte olkoon vakiosyöte

  yritä
    tee syötteen kullekin alkiolle:
      käsittele(alkio)
  paitsi poikkeustilanteessa liukulukuylivuoto:
    kirjoita(virhetulosteeseen, "liukulukuylivuoto")
  muutoin:
    kirjoita(virhetulosteeseen, "odottamaton poikkeus")
mhd 3 hours ago | parent | prev | next [-]

Like a more devious Lingua::Romana::Perligata?

https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...

marmakoide 2 hours ago | parent | prev [-]

And with all the maths in balanced ternary