rename string to word
This commit is contained in:
@ -1,6 +0,0 @@
|
||||
|
||||
|
||||
module Parfait
|
||||
class String < Object
|
||||
end
|
||||
end
|
12
lib/parfait/word.rb
Normal file
12
lib/parfait/word.rb
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
module Parfait
|
||||
# A word is a a short sequence of characters
|
||||
# Characters are not modeled as objects but as (small) integers
|
||||
# The small means two of them have to fit into a machine word, iw utf16 or similar
|
||||
#
|
||||
# Words are constant, maybe like js strings, ruby symbols
|
||||
# Words are short, but may have spaces
|
||||
class Word < Object
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user