<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>enum &#8211; Frankis Website</title>
	<atom:link href="https://fpposchmann.de/tag/enum/feed/" rel="self" type="application/rss+xml" />
	<link>https://fpposchmann.de</link>
	<description>Consulting &#38; Software</description>
	<lastBuildDate>Sun, 04 Mar 2018 13:00:22 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://fpposchmann.de/wp-content/uploads/2023/08/cropped-Bildschirmfoto-2023-08-07-um-14.23.35-32x32.png</url>
	<title>enum &#8211; Frankis Website</title>
	<link>https://fpposchmann.de</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Update: Serialising enums and structs in Swift 4</title>
		<link>https://fpposchmann.de/update-serialising-enums-and-structs-in-swift-4/</link>
					<comments>https://fpposchmann.de/update-serialising-enums-and-structs-in-swift-4/#respond</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Mon, 13 Nov 2017 14:34:21 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[associated value]]></category>
		<category><![CDATA[Codable]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[NSCoding]]></category>
		<category><![CDATA[serialization]]></category>
		<category><![CDATA[struct]]></category>
		<guid isPermaLink="false">http://www.fpposchmann.de/?p=259</guid>

					<description><![CDATA[So, now Swift 4 is here and things are changing. One of the big improvements of Swift 4 is the incorporation of serialisation for classes, structs and enums. In contrast to the previous versions which rely on the old NSObject/NSCoding mechanisms the new Coding protocol is not restricted to classes only. And even better, if you do not have special needs the compiler will synthesise for you the needed functions as we will see later.]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/update-serialising-enums-and-structs-in-swift-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Serializing enums with associated values</title>
		<link>https://fpposchmann.de/serializing-enums-with-associated-values/</link>
					<comments>https://fpposchmann.de/serializing-enums-with-associated-values/#respond</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Mon, 29 May 2017 08:54:18 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[associated value]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[NSCoding]]></category>
		<category><![CDATA[serialization]]></category>
		<guid isPermaLink="false">http://www.fpposchmann.de/?p=198</guid>

					<description><![CDATA[A problem arises when we want to store enums (maybe as part of the model) on a file or want to send it over a network, let’s say: want to serialize the enum. Although the primitive types as Int and String conform to the NSCoding protocol as well as collections of those types (e.g. Arrays and Dictionaries) enums and structs don’t. And since they are not classes we can also not implement the NSCoding protocol for them. For simple enums we can use its raw values for coding, but that’s not possible for enums with associated values.]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/serializing-enums-with-associated-values/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Similarity of enums with associated values</title>
		<link>https://fpposchmann.de/similarity-of-enums-with-associated-values/</link>
					<comments>https://fpposchmann.de/similarity-of-enums-with-associated-values/#respond</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Tue, 25 Apr 2017 15:12:15 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[associated value]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[similarity]]></category>
		<guid isPermaLink="false">http://www.fpposchmann.de/?p=169</guid>

					<description><![CDATA[If you have read this previous post you have seen how to compare two enums with associated values for equality. The equality included the associated values as well which is only fair. But sometimes you are not interested in the associated values but only want to know, if the two enums are of the same case regardless of the possibly associated values; I call this in the following if they are "similar".]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/similarity-of-enums-with-associated-values/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Equatable enums with associated values</title>
		<link>https://fpposchmann.de/equatable-enums-with-associated-values/</link>
					<comments>https://fpposchmann.de/equatable-enums-with-associated-values/#respond</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 15:14:20 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[associated value]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[equatable]]></category>
		<guid isPermaLink="false">http://www.fpposchmann.de/?p=69</guid>

					<description><![CDATA[Enums with associated values are a very powerful tool in Swift. You can store context sensitive information along with the value of the enum itself without the need of an additional data structure. But, as of in Swift 3.1, it has some serious limitations.]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/equatable-enums-with-associated-values/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
