This content originally appeared on DEV Community and was authored by ringabout
Progress
chores
create type bound operations for calls in the method dispatcher for ORC
fixes #21592; create type bound operations for calls in the method dispatcher for ORC
import std/options
type Event* = object
code*: string
type App* = ref object of RootObj
id*: string
method process*(self: App): Option[Event] {.base.} =
raise Exception.new_exception("not impl")
It now works.
Write an RFC for adding compiler support for object construction shorthand
compiler support for object construction shorthand
[PR] disable BareExcept warning in panics:on mode
disable BareExcept warning in panics:on mode
try:
raise newException(CatchableError, "catched")
except:
discard
With --panics:on
, the compiler does not give BareExcept
warnings.
[PR] warn on overloaded =copy with refc
fixes #20846; fixes #21427; warn on overloaded =copy with refc
[PR] implement =dup hook eliminating wasMoved and =copy pairs
implement =dup hook eliminating wasMoved and =copy pairs
proc `=dup`(s: ref): ref =
dest[] = src
if src != nil: nimIncRef src
The =dup
hook is for optimization. The compiler sometimes generates =wasMoved(x); =copy(x, y)
. But =wasMoved
is unnecessary in this case since it is going to be rewritten for sure. It should be replaced by x = =dup(y)
instead.
Weekly collection
https://forum.nim-lang.org/t/9908 (2/19)
https://forum.nim-lang.org/t/9940 (2/26)
https://forum.nim-lang.org/t/9970 (3/5)
https://forum.nim-lang.org/t/9989 (3/12)
https://forum.nim-lang.org/t/10024 (3/19)
https://forum.nim-lang.org/t/10040 (3/26)
Participating in contributions
Following The Roadmap 2023 for community building , you could join us in the matrix space where we discuss how to build a community. We appreciate doable suggestions and helps, such as improving the workflow, implementing the roadmap, suggesting doable tasks, reviewing code from contributors. United we stand. We shall work together to make the community thrive.
Sponsorship
Many thanks to Yepoleb, lenis0012, pietroppeter, Clonkk, mode80, Phil, CxPlanner, shirleyquirk, elcritch, geotre, thinkwelltwd, xrfez, enthus1ast, piertoni, Dnanilem, gemath for sponsoring me on GitHub.
This content originally appeared on DEV Community and was authored by ringabout
ringabout | Sciencx (2023-04-03T14:49:37+00:00) Contribute to the Python-like Nim language. Retrieved from https://www.scien.cx/2023/04/03/contribute-to-the-python-like-nim-language/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.