November 29, 2022 General » Re: sumtypes for D | |||
|---|---|---|---|
| |||
...whatever. Leverage existing D features instead:
```d
template nullIsValid(T)
{
static if (is(T == struct... | |||
November 29, 2022 General » Re: [SAoC 2022] Replace druntime Hooks with Templates: Milestone 3, Weeks 1 & 2 | |||
|---|---|---|---|
| |||
Absolutely. All these PRs add new template hooks and also remove the old ones. And... | |||
November 30, 2022 General » Re: sumtypes for D | |||
|---|---|---|---|
| |||
One idea: offer a way to transform template arguments prior to passing them to the... | |||
November 29, 2022 General » Re: draft proposal for Sum Types for D | |||
|---|---|---|---|
| |||
...or `SumType!(int, float)`, it being a template made me confused, even then i'm... | |||
November 29, 2022 General » Re: Sum type, the D way | |||
|---|---|---|---|
| |||
...types, such as for IsExpressions, and for template parameters. Suddenly, existing code that is expecting... | |||
November 29, 2022 General » Re: draft proposal for Sum Types for D | |||
|---|---|---|---|
| |||
...reference see how `mir.algebraic.Variant` canonicalizes template type parameters using the trait `TypeSet` at... | |||
November 29, 2022 General » Re: sumtypes for D | |||
|---|---|---|---|
| |||
...forest for the trees, a bit. Yes, template bloat is an issue, but there is... | |||
November 30, 2022 General » Re: Update on the D-to-Jai guy: We have real problems with the language | |||
|---|---|---|---|
| |||
...had some way to determine cost of template instantiation then we would have a good... | |||
November 28, 2022 General » Re: Update on the D-to-Jai guy: We have real problems with the language | |||
|---|---|---|---|
| |||
...alias attribute) = getUDAs!(symbol, attribute).length != 0;
template getUDAs(alias symbol, alias attribute)
{
import std... | |||
November 29, 2022 General » Re: sumtypes for D | |||
|---|---|---|---|
| |||
...shown library sum types. Well one is template bloat. I happily (well, readily) concede this... | |||
Copyright © 1999-2021 by the D Language Foundation