I’m sure we can come up with a language where three dots separated by spaces is valid syntax.
PS> function . {$Args}
PS> . . .
.
The first dot is an operator which invokes a command in the current scope, the second dot is our command ".", and the third dot is passed to the command as a string. $ .(){ "$@"; } # define function called "."
$ . . . # nothing
$ . echo hello
hello
$ def `. . .` = println("That's valid syntax!")
@main def entryPoint = `. . .`
[ https://scastie.scala-lang.org/BsvbSctXTmaGWaCbM6JX9Q ]I said almost because HN suppresses the back-ticks…
.(){ :; }
This creates a function called "." that does nothing.Then this is valid code:
. . .