I hereby claim:
- I am akarpov89 on github.
- I am akarpov89 (https://keybase.io/akarpov89) on keybase.
- I have a public key ASBfra_qWZxw2BzvU5jt7zF3ocnAIbAGc3Pm-SauFPnO5go
To claim this, I am signing this object:
| using System.Runtime.CompilerServices; | |
| using static ParsingExtensions; | |
| string input = "Name: Andrew; Age: 31"; | |
| string? name = null; | |
| int age = 0; | |
| if (input.TryParse($"Name: {Placeholder(ref name)}; Age: {Placeholder(ref age)}")) | |
| { |
| using System; | |
| using System.Text; | |
| namespace InternshipTask | |
| { | |
| public interface IExpression | |
| { | |
| T Accept<T>(IVisitor<T> visitor); | |
| } |
| namespace System | |
| { | |
| public readonly partial struct Index : System.IEquatable<System.Index> | |
| { | |
| private readonly int _dummyPrimitive; | |
| public Index(int value, bool fromEnd) { throw null; } | |
| public int Value { get { throw null; } } | |
| public bool FromEnd { get { throw null; } } | |
| public override bool Equals(object value) { throw null; } | |
| public bool Equals(Index other) { throw null; } |
I hereby claim:
To claim this, I am signing this object:
| template <unsigned n> | |
| unsigned fact() | |
| { | |
| if (n == 0) | |
| return 1; | |
| // return n * fact<n - 1>(); <-- not compiles, infinite recursion | |
| return n * fact<n - (n ? 1 : 0)>(); // OK | |
| } |