博碩士論文 110522112 完整後設資料紀錄

DC 欄位 語言
DC.contributor資訊工程學系zh_TW
DC.creator林右展zh_TW
DC.creatorYou-Zhan Linen_US
dc.date.accessioned2023-7-28T07:39:07Z
dc.date.available2023-7-28T07:39:07Z
dc.date.issued2023
dc.identifier.urihttp://ir.lib.ncu.edu.tw:444/thesis/view_etd.asp?URN=110522112
dc.contributor.department資訊工程學系zh_TW
DC.description國立中央大學zh_TW
DC.descriptionNational Central Universityen_US
dc.description.abstract程式語言在不可變性的支援對程式開發流程相當有幫助,特別是對指令式的物件導向程式語言來說。 透過不可變性限制物件的狀態,不僅能更容易理解程式的執行流程,若使用適當,更能減少程式開發過程中尋找與去除程式錯誤的時間。 對於不可變性支援程度較低的程式語言,過去有許多研究在該語言的型別或注釋系統上加入新的型別或注釋,藉此標記變數、函式、類別等結構的不可變性。 Python 雖已支援部分不可變類別的建立方式與不可變型別提示的使用,但仍存在一些使用上的不容易。 因此本研究在 Python 中加入一個新的型別提示 Frozen。 透過將 Frozen 標記在變數、參數、屬性等名稱上,便可以使用靜態檢查工具來檢測這些變數是否被用於修改其對應的物件。 這樣做可以提升程式的正確性、加速錯誤的排除,從而使程式開發流程更加順暢。zh_TW
dc.description.abstractLanguage supports for immutability in programming languages can benefit the software development process, especially in imperative object-oriented programming languages. By enforcing immutability and restricting the modification of objects′ states, it becomes easier to understand the program′s execution flow. When used appropriately, immutability can also reduce the time spent on finding and fixing program errors. For programming languages with limited support for immutability, there has been research in the past on introducing new types or annotations within the language′s type or annotation system. These additions aim to mark the immutability of variables, functions, classes, and other structures. Although Python already supports the creation of immutable classes and the type hints of partial immutable types, there are still some challenges in practice that make it less straightforward. Therefore, this research introduces a new type hint in Python called "Frozen." By applying the "Frozen" to variables, parameters, attributes, and other identifiers, static analysis tools can be used to detect if these variables are used to modify their corresponding objects. This approach makes the software development process smoother.en_US
DC.subject不可變性zh_TW
DC.subject型別提示zh_TW
DC.subject靜態分析zh_TW
DC.subjectPythonzh_TW
DC.subjectImmutabilityen_US
DC.subjectType Hintsen_US
DC.subjectStatic Analysisen_US
DC.subjectPythonen_US
DC.title基於 Python 型別提示檢查不可變性zh_TW
dc.language.isozh-TWzh-TW
DC.titleChecking Immutability using Python Type Hintsen_US
DC.type博碩士論文zh_TW
DC.typethesisen_US
DC.publisherNational Central Universityen_US

若有論文相關問題,請聯絡國立中央大學圖書館推廣服務組 TEL:(03)422-7151轉57407,或E-mail聯絡  - 隱私權政策聲明