GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Implement generics · Issue #154 · lcompilers/lpython Open DescriptionWe need to allow writing generic functions (templates) and template constraints. One idea that we can explore is to also support something like: #152 (comment): >>> def str(val: i32 | f64): ... # "isinstance" type guard ... if isinstance(val, i32): ... # type of `val` is narrowed to `i32` ... return str_int(val) ... elif isinstance(val, f64): ... # else, type of `val` is narrowed to `f64` ... return str_float(val) Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |