gleam-lang/gleam

Allow function literals in constants

Open

#3,942 创建于 2024年12月2日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)Rust (960 fork)batch import
help wanted

仓库指标

Star
 (21,417 star)
PR 合并指标
 (平均合并 10天 19小时) (30 天内合并 69 个 PR)

描述

The ability to do something like this would be nice:

type FunctionWrapper {
  FunctionWrapper(fn(String) -> Int)
}
const my_function = FunctionWrapper(fn(something) { 0 })

贡献者指南