开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
metaprogramming

metaprogramming

go

创建具有类型注释的Python类(通过编程方式)。

英文: Create python class with type annotations programatically 问题 我希望能够像以下这样通过编程方式创建一个Python类: class ...
huangapple 2023年2月18日125评论metaprogramming python
go

在Scala 3中,是否可以在运行时使用对象的声明类型?

英文: In Scala 3, is it possible to use declared type of an object in runtime? 问题 在Scala 2中,对象的大部分泛型类型...
huangapple 2023年2月16日108评论metaprogramming scala
go

如何在Julia中从一个函数中使用另一个函数中的表达式。

英文: How to use an expression in function from other function in julia 问题 当我尝试以下代码时: function f(x) Me...
huangapple 2023年1月9日127评论function julia
go

在变体和原始类型上运行 std::visit。

英文: run std::visit on the variant and original type 问题 有一个奇怪的情况,有时一个函数接受一个变体,而其他时候它接受变体的成员。 void bra...
huangapple 2023年1月9日153评论c++ c++20
go

在Scala 3宏内部提供与类型参数[T]等效的内容。

英文: Providing the equivalent of a type parameter [T] from inside a Scala 3 macro 问题 I apologize for ...
huangapple 2023年1月9日121评论metaprogramming scala
go

模板元编程用于计算斐波那契数列

英文: Template Metaprogramming to calculate Fibonacci 问题 最近在一次面试中,我被要求给出第100个三阶斐波那契数列的结果(Fib(n)=Fib(n-...
huangapple 2020年1月3日146评论c++ templates
go

使用枚举值作为模板函数的模板参数在运行时进行元编程。

英文: Metaprogram to use enumerator value as template parameter of a template function at runtime 问题 我...
huangapple 2020年1月3日139评论c++ templates
go

有没有任何习惯用于生成/预处理解决方案的库?

英文: Any idiomatic generate/preprocessing solution library? 问题 我真的很喜欢Go语言,但是在处理错误和与其他语言使用同步数据类型时,它让我感...
huangapple 2017年8月11日151评论go metaprogramming
go

使用反射进行元编程/模板化。

英文: go reflect for metaprogramming/templates 问题 我有一些接收protobuf消息的代码,在几个地方基本上是重复的,所以我想把它放到一个库中。问题是每组代...
huangapple 2016年2月6日154评论go templates
go

Go reflect. How to check whether reflect.Type is an error type?

英文: Go reflect. How to check whether reflect.Type is an error type? 问题 我需要确定地检查一个 reflect.Type 是否是一个...
huangapple 2015年6月7日152评论go reflection
4

文章导航

1 2 3 4
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客16953791

热门标签

node.js typescript java c# json reactjs css html go android c++ arrays flutter pandas r sql spring spring-boot javascript python

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码