Conversation

then whats the point of the ()????

5
3
6

like its not even like { a b c } in some forth dialects where that lets you define stack elements as local variables

0
0
3

@kopopp this is a forth inspired stack-based language, ( ) should only be used for stack-effect comments

1
0
2
@coolbean perhaps the documetation is slightly off and you can put a comment in there?

and they were just trying to make certain its known that its not usee for passing arguments
0
0
2

~♥ 𝐭𝐡𝐞 𝐛𝐲𝐭𝐞 𝐨𝐟 '𝟖𝟕 ♥~

@coolbean in sh you have to write whatever() { } even though the () is completely useless other than saying “this is a function” (arguments to the function are ${1} ${2} ${3} and so on)

bash/ksh&co. let you do function whatever { } instead

2
0
3
@coolbean name( ) is heavily associated with functions so this notation makes it clear to the mind
1
0
1

@wetsocks see thats what im telling yall. the dc programmable calculator is the real unix scripting utility, sh is just there for interactive use

0
2
1

@meeper but this is a forth-like, literally every word is a function, even variables and numerics are technically functions that put specific values onto the stack

0
0
2
@coolbean to make it look like everything else i guess
1
0
1

@icedquinn everything else except all the languages actually related to this

0
0
0