June 21, 2021
2:06 p.m.
Potentially off topic for this list. But posting here to get suggestions on where I might find the right audience for the discussion. Problem: how to transpile python code that might throw exceptions to languages that don't have exceptions, but do have Result<T, Err>. Does something like this make sense? ``` from typing import Optional, Generic, TypeVar from dataclasses import dataclass T = TypeVar("T") @dataclass class Result(Generic[T]): data: T error: Optional[Exception] ``` Details: https://github.com/adsharma/py2many/issues/322 -Arun