Ali Akhtarzada

Results 27 comments of Ali Akhtarzada

I guess it's based off of 3.2? clang -v gives me: Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) It's the one that comes with xcode 4.2 When I...

For structs and classes I may have had a prototype that went something like: ```d struct S {} alias NewS = Transmogrify!S.With!q{ void f() { writeln("extended functionality"); } } auto...

I agree `Nullable` can be used here but it's says nothing about "this value may be present" in a truely generic sense - null is a very valid part of...

Why is it called "Quote"? Is this supposed to be a "`PackedAliasSeq`"? Have you seen: https://github.com/yshui/phobos/blob/1c4a6ed23624cd439ad0f95042dd445a2e51b3c2/std/meta.d#L1762 ? It would also be nice to see some use-cases in unittests to get...

My vote would go to adapting pack and fixing up the API. I have something similar in a library for some ideas: https://github.com/aliak00/bolts/blob/a6d9e7830c915e11667fc1ad2e80f323cb314cdc/source/bolts/meta.d#L108 There's also this forum post: https://forum.dlang.org/post/[email protected]

> Also: currently the layout is sorted by offset first, order of declaration second. But the order of declaration is irrelevant. Better find a canonical order - will sort by...

I'm certainly no expert in D, but is there too much wrong with the following implementation of orElse?: ``` auto orElse(Range, T)(Range r, T defaultValue) if (isInputRange!Range && is(T :...

So these two workaround work: ```typescript const [editor] = useState(withReact(createEditor())); ``` and ```typescript const editorRef = useRef(); if (!editorRef.current) editorRef.current = withReact(createEditor()); const editor = editorRef.current; ``` What's the difference...

Maybe related to this too? https://issues.dlang.org/show_bug.cgi?id=20085