Created
September 24, 2018 17:21
-
-
Save ianloic/37e0202d342e71d5252c76898d395aa2 to your computer and use it in GitHub Desktop.
Various hellos world.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rdl' | |
require 'types/core' | |
extend RDL::Annotate | |
type '(String) -> nil', typecheck: :now | |
def greet(name) | |
puts "hello, #{name}." | |
end | |
greet 'world' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function greet(name) { | |
console.log(`hello, ${name}.`); | |
} | |
greet('world'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def greet(name) | |
puts "hello, #{name}." | |
end | |
greet 'world' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function greet(name: string): void { | |
console.log(`hello, ${name}.`); | |
} | |
greet('world'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment