enum
Here are 417 public repositories matching this topic...
-
Updated
Jan 23, 2020 - C#
-
Updated
Jun 7, 2020 - PHP
See https://github.com/Neargye/magic_enum#readme.
If someone tries both Better Enums and magic_enum, and there is a reason to prefer Better Enums, please leave a comment here.
Otherwise, I think we should recommend magic_enum and move Better Enums toward deprecation.
cc @Neargye
I think that
val profile: slick.jdbc.Profile
has changed, it is not found. Also, when extending from SlickEnumSupport, many other slick implicit mappings are no longer found.
Is it possible to check if an update is needed to the slick integration part of the README?
-
Updated
Jun 19, 2020 - Java
-
Updated
May 12, 2020 - Ruby
Right now, we just return atoms whenever we call user.status. We could accept an option in defenum so that user.status will return either string or atom instead.
-
Updated
Apr 27, 2020 - PHP
-
Updated
May 31, 2020 - PHP
-
Updated
Jun 18, 2020 - Objective-C
-
Updated
Jun 20, 2020 - PHP
-
Updated
Jun 17, 2020 - PHP
There should be a derive proc-macro alternative to the macro_rules enum_from_primitive!{..} because it doesn't play well with other such macros like custom_derive!{..}.
I think it would make sense to have it as part of this crate, because it already contains many useful derives for enums.
-
Updated
Sep 20, 2016 - Swift
-
Updated
Jun 18, 2020 - C#
-
Updated
Nov 5, 2019 - PHP
-
Updated
May 10, 2020 - JavaScript
-
Updated
Mar 9, 2020 - Python
Hi
a section on "'how to use with easy admin" could be nice when editing entities inside easy admin bundle.
-
Updated
May 13, 2020 - JavaScript
-
Updated
Apr 18, 2020 - C#
When trying to use ActiveRecord's Enum stuff with an enum column I end up with a type mismatch when creating records. ActiveRecord defaults to converting the enum values to integers which does not map correctly to PostgreSQL's enum types. The workaround is to specify each value as the string version of the enum.
Model
class AddOn < ActiveRecord::Base
enum category: %i[thermos
-
Updated
May 9, 2020 - Ruby
It would be very helpful when comments on the enum values would also be rendered to the generated source
@superEnum
enum _Result {
/// Comment #1
@generic
@Data(fields: [
DataField('data', Generic),
DataField('message', String),
])
Success,
@object
Error,
}abstract class Result<T> extends Equatable {
const Result(this._type);
Improve this page
Add a description, image, and links to the enum topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the enum topic, visit your repo's landing page and select "manage topics."
I created some Enums and running phpstan with level 6 or higher I get this:
Could it be added to the readme how to add these types to my Enum class?