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
(defmacro ++ (&rest rest) | |
`(concatenate 'string ,@rest)) | |
(let ((name "John")) | |
(princ (++ "Hello, " name "\n"))) |
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
# go勉強会、ソースコードリーディングの会vol.1 | |
福岡でGoやってる! なにそれ?面白そう? とか、Goroutine気になるだとか! | |
CやC++でシステムプヨグヤミングやりたくないぽよ! とか思う人のためのGo勉強会でつ! | |
==================================== | |
システムプログラミングで良く使われ、並列処理でGoroutineだとか面白い機能があり、 | |
DockerやCockrouchDBで使われ出したりとか、現在注目をされているGo言語の勉強会です。 | |
## 今回メンバー構成 |
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
イベントページ関係 | |
* イベントページの内容を修正する | |
ソースコードリーティング会関係 | |
* 題材を決定する | |
* コードリーディングのポイントを作成する | |
* ソースコードリーディングに関しての資料作り |
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
fizz = function f(n){ | |
fizz = function(n){ | |
fizz = function(n){ | |
fizz = f; | |
return "Fizz"; | |
}; | |
return n; | |
}; | |
return n; | |
}; |
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
(ql:quickload :optima) | |
(defpackage :monad | |
(:use :common-lisp :optima) | |
(:export :bind :just :none :do-monad)) | |
(in-package :monad) | |
;; return | |
(defgeneric unit-m (type x)) | |
;; >>= |
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
class CFizzBuzz{ | |
public static function main(){ | |
fizzbuzz(); | |
} | |
macro public static function fizzbuzz(){ | |
var fizzbuzzText : String = "\n"; | |
for( i in 1...100 ){ | |
fizzbuzzText += if( i % 15 == 0 ){ | |
"FizzBuzz "; |
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
class Symbol | |
def method_missing(name, *args) | |
self.to_s.method(name).call(*args) | |
end | |
end | |
puts :hello.start_with "he" |
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
trait Creatable[T] { | |
def create : T | |
} | |
object Main extends App{ | |
implicit object CreatableInt extends Creatable[Int] { | |
def create : Int = 3 | |
} |
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
object Main extends App{ | |
trait Addable[T] { | |
def add(a:T) : T | |
} | |
implicit object CreatableInt extends Addable[Int]{ | |
def add(a:Int) : Int = a + 3 | |
} | |
implicit object CreatableString extends Addable[String] { |
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
object Main extends App{ | |
class Hoge | |
def createValue : Hoge = new Hoge | |
implicit def toInt(x:Hoge) : Int = 3 | |
implicit def toString(x:Hoge) : String = "pa" | |
val a : Int = createValue | |
println(a) | |
val b : String = createValue |