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 ShortLambdaMacroTest { | |
static function other(i:Int){ | |
trace('ok, so $i'); | |
} | |
static function using(){ | |
Lambda.iter([1,2,3], function(i){trace(i);}); | |
Lambda.iter([1,2,3], f(i => trace(i))); | |
Lambda.iter([1,2,3], f(i => {trace(i + 1); other(i);})); | |
} |
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
package util; | |
@:genericBuild(util.JsonValidatorMacro.build()) | |
class JsonValidator<T> { | |
} |
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
package; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
import haxe.macro.Type; | |
class ExtendMacro { | |
#if macro | |
static function buildExtend(reference:Expr, fieldsObj:Expr){ |
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
const TOPIC_BUFFER = 'topic'; | |
const MSG_LEN = 7; | |
function topic() { | |
return 'topic'; | |
return TOPIC_BUFFER.toString(); | |
} | |
const SINGLE_BUFFER = Buffer.alloc(MSG_LEN); | |
function msg() { |
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
#!/bin/bash | |
FEDORA_MAJOR="38" | |
ARCH="x86_64" | |
KERNEL_VERSION="6.3.8-200.fc38" | |
ZFS_VERSION="2.1.12" | |
podman run \ | |
--interactive \ | |
--tty \ |
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
import * as _m0 from "protobufjs/minimal"; | |
export declare const protobufPackage = "TsProtoSample"; | |
export interface FooRequest { | |
req: string; | |
} | |
export interface FooResponse { | |
res: string; | |
} | |
export declare const FooRequest: { | |
encode(message: FooRequest, writer?: _m0.Writer): _m0.Writer; |