Skip to content

Refactoring of 0.15 API #468

@Neverlord

Description

@Neverlord

This issue gathers refactoring requests for 0.15 and announces upcoming changes. The idea is to give all "early adopters" a platform for discussion and to announce upcoming changes a few days in advance instead of silently breaking the API every now and then.

The first API update will remove the virtual member function actor_system_config::init. As pointed out by @mavam in #467, users can simply perform initialization in the default constructor of subclasses. This change will be merged to develop on June 6.

Also raised by @mavam: actor handles don't use a consistent term for describing "null handles": unsafe_actor_handle_init, x.unsafe(), and invalidate(x). The alternative proposal was to go with "invalid" in all three cases. I originally preferred "unsafe" over "invalid", because it is more descriptive. A handle in this state is unsafe to use, i.e., can cause undefined behavior. Are there more opinions on this? Maybe I could be convinced to go with invalid_handle_init, x.invalid(), and invalidate(x).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions