-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Labels
Description
In Frege, the apostrophe is only allowed at the end of a name
But in Frege repl (version 3.24.30) it looks as follows:
frege> conanOBrien' = "It's a-me, Conan O'Brien!"
function conanOBrien' :: String
frege> conanOBrien'
java.lang.NoSuchFieldException: conanOBrien'
By the way, having the apostrophe in the middle of the name leads to the same results:
frege> conanO'Brien = "It's a-me, Conan O'Brien!"
function conanO'Brien :: String
frege> conanO'Brien
java.lang.NoSuchFieldException: conanO'Brien
However, if I define it as a function with an argument, it works:
frege> conanO'Brien a = "It's a-me, Conan O'Brien!" ++ a
function conanO'Brien :: String -> String
frege> conanO'Brien "foo"
It's a-me, Conan O'Brien!foo