mirror of
				https://github.com/janet-lang/janet
				synced 2025-11-04 01:23:04 +00:00 
			
		
		
		
	Add native keyword type to replace symbols with leading ':'
character.
This commit is contained in:
		@@ -41,6 +41,7 @@
 | 
			
		||||
                (fiber/new (fn [] 1))
 | 
			
		||||
                "hi"
 | 
			
		||||
                (quote hello)
 | 
			
		||||
                :hello
 | 
			
		||||
                (array 1 2 3)
 | 
			
		||||
                (tuple 1 2 3)
 | 
			
		||||
                (table "a" "b" "c" "d")
 | 
			
		||||
@@ -201,7 +202,7 @@
 | 
			
		||||
 | 
			
		||||
(def 🦊 :fox)
 | 
			
		||||
(def 🐮 :cow)
 | 
			
		||||
(assert (= (string "🐼" 🦊 🐮) "🐼:fox:cow") "emojis 🙉 :)")
 | 
			
		||||
(assert (= (string "🐼" 🦊 🐮) "🐼foxcow") "emojis 🙉 :)")
 | 
			
		||||
(assert (not= 🦊 "🦊") "utf8 strings are not symbols and vice versa")
 | 
			
		||||
 | 
			
		||||
# Symbols with @ character
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user