You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "huxihx (Jira)" <ji...@apache.org> on 2020/10/09 03:16:00 UTC
[jira] [Assigned] (KAFKA-10584) IndexSearchType should use sealed
trait instead of Enumeration
[ https://issues.apache.org/jira/browse/KAFKA-10584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
huxihx reassigned KAFKA-10584:
------------------------------
Assignee: huxihx
> IndexSearchType should use sealed trait instead of Enumeration
> --------------------------------------------------------------
>
> Key: KAFKA-10584
> URL: https://issues.apache.org/jira/browse/KAFKA-10584
> Project: Kafka
> Issue Type: Improvement
> Components: core
> Reporter: Jun Rao
> Assignee: huxihx
> Priority: Major
> Labels: newbie
>
> In Scala, we prefer sealed traits over Enumeration since the former gives you exhaustiveness checking. With Scala Enumeration, you don't get a warning if you add a new value that is not handled in a given pattern match.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)