{"id":86435,"date":"2020-06-25T01:42:12","date_gmt":"2020-06-24T23:42:12","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/anonsirovan-perl-7"},"modified":"2020-06-25T01:42:12","modified_gmt":"2020-06-24T23:42:12","slug":"anonsirovan-perl-7","status":"publish","type":"post","link":"https:\/\/prohoster.info\/cs\/blog\/news\/anonsirovan-perl-7","title":{"rendered":"Byl ozn\u00e1men Perl 7","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Na dne\u0161n\u00ed virtu\u00e1ln\u00ed konferenci v\u00fdvoj\u00e1\u0159\u016f jazyka Perl <noindex><a rel=\"nofollow\" href=\"https:\/\/www.perl.com\/article\/announcing-perl-7\/\">byl ozn\u00e1men<\/a><\/noindex> projekt Perl 7, kter\u00fd plynule nav\u00e1\u017ee na v\u00fdvoj v\u011btve Perl 5 bez radik\u00e1ln\u00edch zm\u011bn. Perl 7 bude obdobn\u00fd verzi <noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=53207\">Perl 5.32.0<\/a><\/noindex>, s v\u00fdjimkou jin\u00fdch v\u00fdchoz\u00edch nastaven\u00ed, kter\u00e1 l\u00e9pe odpov\u00eddaj\u00ed modern\u00ed praxi v\u00fdvoje. Jinak z\u016fstane Perl 7 stejn\u00fd jako Perl 5 a zachov\u00e1 kompatibilitu s d\u0159\u00edve vyvinut\u00fdmi aplikacemi.<\/p>\n<p>V\u00fdznamn\u00e1 zm\u011bna \u010d\u00edsla verze se stane jak\u00fdmsi odd\u011blova\u010dem p\u0159echodu na nov\u00fd model zvy\u0161ov\u00e1n\u00ed funk\u010dnosti jazyka Perl bez v\u00fdrazn\u00e9ho naru\u0161en\u00ed zp\u011btn\u00e9 kompatibility.<br \/>\nP\u0159edpokl\u00e1d\u00e1 se, \u017ee vytvo\u0159en\u00ed Perl 7 pom\u016f\u017ee p\u0159il\u00e1kat nov\u00e9 v\u00fdvoj\u00e1\u0159e k pou\u017e\u00edv\u00e1n\u00ed Perlu a usnadn\u00ed proces p\u0159id\u00e1v\u00e1n\u00ed v\u00fdznamn\u00fdch nov\u00fdch funkc\u00ed do jazyka, zat\u00edmco se zachov\u00e1 kompatibilita s k\u00f3dem existuj\u00edc\u00edch projekt\u016f. \u010c\u00edslo 7 bylo zvoleno, proto\u017ee Perl 6 byl pou\u017eit p\u0159i v\u00fdvoji jazyka, kter\u00fd nyn\u00ed <noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=51679\">se vyv\u00edj\u00ed<\/a><\/noindex> je pod jin\u00fdm n\u00e1zvem Raku. Prvn\u00ed vyd\u00e1n\u00ed Perl 7 se o\u010dek\u00e1v\u00e1 v p\u0159\u00ed\u0161t\u00edm roce. V\u011btev Perl 5.32 se stane posledn\u00ed v s\u00e9rii Perl 5 a pl\u00e1nuje se jej\u00ed podpora po dobu 5 a\u017e 10 let.<\/p>\n<p>Nejv\u00fdznamn\u011bj\u0161\u00ed zm\u011bnou v Perl 7 bude v\u00fdchoz\u00ed zahrnut\u00ed re\u017eimu \u201e<noindex><a rel=\"nofollow\" href=\"https:\/\/perldoc.perl.org\/strict.html\">strict<\/a><\/noindex>\u201e, co\u017e p\u0159edpokl\u00e1d\u00e1 p\u0159\u00edsnou kontrolu deklarac\u00ed prom\u011bnn\u00fdch, pou\u017e\u00edv\u00e1n\u00ed symbolick\u00fdch ukazatel\u016f a p\u0159i\u0159azov\u00e1n\u00ed podprogram\u016f. Pou\u017eit\u00ed \u201euse strict\u201c je dobr\u00fdm t\u00f3nem a v\u011bt\u0161ina v\u00fdvoj\u00e1\u0159\u016f ho aplikuje. Podobn\u011b se pl\u00e1nuje v\u00fdchoz\u00ed zahrnut\u00ed zpracov\u00e1n\u00ed varov\u00e1n\u00ed (\u201e<noindex><a rel=\"nofollow\" href=\"https:\/\/perldoc.perl.org\/warnings.html\">use warnings<\/a><\/noindex>\u201e).<\/p>\n<p> V Perl 7 se tak\u00e9 po\u010d\u00edt\u00e1 s t\u00edm, \u017ee budou stabilizov\u00e1ny a v\u00fdchoz\u00ed zp\u016fsobem zahrnuty n\u011bkter\u00e9 ji\u017e existuj\u00edc\u00ed experiment\u00e1ln\u00ed funkce, jako nap\u0159\u00edklad  <noindex><a rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=39865\">signatury funkc\u00ed<\/a><\/noindex> (\u201euse feature 'signatures'\u201c), kter\u00e9 umo\u017e\u0148uje definovat vstupn\u00ed argumenty p\u0159i definici funkce a automatizovat kontrolu jejich po\u010dtu (bude mo\u017en\u00e9 ps\u00e1t \u201esub foo ($left, $right) {\u201c m\u00edsto \u201esub foo { my($left, $right) = @_;}\u201c). Tak\u00e9 pl\u00e1nuj\u00ed v\u00fdchoz\u00ed zahrnut\u00ed podpory oper\u00e1toru \u201eisa\u201c pro kontrolu, zda je objekt instanc\u00ed dan\u00e9 t\u0159\u00eddy nebo odvozen\u00e9 t\u0159\u00eddy (\u201eif( $obj isa Package::Name )\u201c, stejn\u011b jako operac\u00ed postderef \u201e$sref-&gt;$*\u201c m\u00edsto \u201e${ $sref }\u201c, \u201e$aref-&gt;@*\u201c m\u00edsto \u201e@{ $aref }\u201c a \u201e$href-&gt;%{ ... }\u201c m\u00edsto \u201e%$href{ ... }\u201c. <\/p>\n<p>Kandid\u00e1ty na vypnut\u00ed v\u00fdchoz\u00edho re\u017eimu v Perl 7 jsou:<\/p>\n<ul>\n<li class=\"l\"> Nep\u0159\u00edm\u00e1 notace pro vol\u00e1n\u00ed objekt\u016f (\u201e<noindex><a rel=\"nofollow\" href=\"https:\/\/metacpan.org\/pod\/indirect\">\u017e\u00e1dn\u00e1 funkce qw(indirect)<\/a><\/noindex>\u201e) \u2014 zastaral\u00fd zp\u016fsob vol\u00e1n\u00ed objekt\u016f, kde je m\u00edsto \u201e-&gt;\u201c pou\u017e\u00edv\u00e1n prostor (\u201emethod $object @param\u201c m\u00edsto \u201e$object-&gt;$method(@param)\u201c). Nap\u0159\u00edklad m\u00edsto \u201emy $cgi = new CGI\u201c bude v\u017edy nutn\u00e9 pou\u017e\u00edt \u201emy $cgi = CGI-&gt;new\u201c.\n<li class=\"l\"> Hol\u00e9 popisova\u010de soubor\u016f bez deklarace prom\u011bnn\u00fdch (\u201e<noindex><a rel=\"nofollow\" href=\"https:\/\/metacpan.org\/pod\/bareword::filehandles\">\u017e\u00e1dn\u00fd bareword::filehandle<\/a><\/noindex>\u201e) \u2014 pou\u017e\u00edv\u00e1n\u00ed konstrukc\u00ed typu \u201eopen FH, $file\u201c povede k chyb\u011b, je t\u0159eba pou\u017e\u00edt \u201eopen my $fh, $file\u201c. Zm\u011bna se nedotkne standardn\u00edch popisova\u010d\u016f soubor\u016f STDIN, STDOUT, STDERR, ARGV, ARGVOUT a DATA.\n<li class=\"l\"> Fiktivn\u00ed v\u00edcerozm\u011brn\u00e9 pole a hash v stylu Perl 4 (\u201e<noindex><a rel=\"nofollow\" href=\"https:\/\/metacpan.org\/pod\/multidimensional\">\u017e\u00e1dn\u00fd multidimenzion\u00e1ln\u00ed<\/a><\/noindex>\u201e).<br \/>\nNap\u0159\u00edklad, specifikace \u201e$hash{1, 2}\u201c povede k chyb\u011b, je t\u0159eba pou\u017e\u00edt mezipole, nap\u0159\u00edklad \u201e$hash{join($;, 1, 2)}\u201c.<\/p>\n<li class=\"l\"> Deklarace prototyp\u016f ve stylu Perl 4 (je t\u0159eba pou\u017e\u00edt \u201euse :prototype()\u201c).\n<\/ul>\n<p>V budoucnu se pl\u00e1nuje v\u00fdchoz\u00ed zahrnut\u00ed podpory Unicode, co\u017e uvoln\u00ed v\u00fdvoj\u00e1\u0159e od nutnosti uv\u00e1d\u011bt \u201euse utf8\u201c v k\u00f3du. Pro moduly a skripty, kde vzniknou probl\u00e9my s nov\u00fdmi v\u00fdchoz\u00edmi nastaven\u00edmi, bude mo\u017en\u00e9 vr\u00e1tit chov\u00e1n\u00ed Perl 5 p\u0159id\u00e1n\u00edm do k\u00f3du \u0159\u00e1dku \u201euse compat::perl5\u201c. N\u011bkter\u00e1 nastaven\u00ed se tak\u00e9 zachovaj\u00ed a bude mo\u017en\u00e9 je m\u011bnit jednotliv\u011b.<\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Zdroj: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=53226\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041d\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0437\u044b\u043a\u0430 Perl \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0435\u043a\u0442 Perl 7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043b\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0432\u0435\u0442\u043a\u0438 Perl 5 \u0431\u0435\u0437 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0440\u0430\u0434\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. Perl 7 \u0431\u0443\u0434\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u0435\u043d \u0432\u044b\u043f\u0443\u0441\u043a\u0443 Perl 5.32.0, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0438\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043b\u0443\u0447\u0448\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c Perl 7 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0436\u0435 Perl 5 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u0440\u0430\u043d\u0435\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-86435","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041d\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0437\u044b\u043a\u0430 Perl \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0435\u043a\u0442 Perl 7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043b\u0430\u0432\u043d\u043e.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/cs\/blog\/news\/anonsirovan-perl-7\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0410\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d Perl 7 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041d\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0437\u044b\u043a\u0430 Perl \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0435\u043a\u0442 Perl 7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043b\u0430\u0432\u043d\u043e.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/cs\/blog\/news\/anonsirovan-perl-7\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-06-24T23:42:12+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-06-24T23:42:12+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Ozn\u00e1men Perl 7 | ProHoster","description":"Na dne\u0161n\u00ed virtu\u00e1ln\u00ed konferenci v\u00fdvoj\u00e1\u0159\u016f jazyka Perl byl ozn\u00e1men projekt Perl 7, kter\u00fd plynule.","canonical_url":"https:\/\/prohoster.info\/cs\/blog\/news\/anonsirovan-perl-7","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"cs_CZ","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0410\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d Perl 7 | ProHoster","og:description":"\u041d\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0437\u044b\u043a\u0430 Perl \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0440\u043e\u0435\u043a\u0442 Perl 7, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043b\u0430\u0432\u043d\u043e.","og:url":"https:\/\/prohoster.info\/cs\/blog\/news\/anonsirovan-perl-7","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-06-24T23:42:12+00:00","article:modified_time":"2020-06-24T23:42:12+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"86435","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 14:15:25","updated":"2022-10-02 14:36:01","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/86435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/comments?post=86435"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/posts\/86435\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/media?parent=86435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/categories?post=86435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/cs\/wp-json\/wp\/v2\/tags?post=86435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}